<h1>Listing Monogram Families</h1>

<table>
  <tr>
  <% for column in MonogramFamily.content_columns %>
    <th><%= column.human_name %></th>
  <% end %>
  </tr>
  
<% for monogram in @monograms %>
  <tr>
  <% for column in MonogramFamily.content_columns %>
 	<% if column.name == "data" %>
  		<td><%= image_tag("/binary/mini_monogram/#{monogram.id}") %></td>
   	<% else %>
     	<td><%=h monogram.send(column.name) %></td>
    <% end %>
  <% end %>
    <td><%= link_to 'Show', :action => 'show', :id => monogram %></td>
    <td><%= link_to 'Edit', :action => 'edit', :id => monogram %></td>
    <td><%= link_to 'Destroy', { :action => 'destroy', :id => monogram }, :confirm => 'Are you sure?', :method => :post %></td>
  </tr>
<% end %>
</table>


<%= link_to 'New monogram family', :action => 'new' %>
